package com.jn.exam.question.mapper;


import com.jn.exam.question.entity.PersonalQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-01-18
 */
public interface PersonalQuestionMapper extends BaseMapper<PersonalQuestion> {

    boolean removeQuestionByPersonalQuestionStoreId(String personalQuestionStoreId);

    List<PersonalQuestion> getQuestionByPersonalQuestionStoreId(String personalQuestionStoreId);

    boolean deletePersonalQuestionByIdComplete(String personalQuestionId);

    boolean deletePersonalQuestionBysIdComplete(String[] personalQuestionIds);


    boolean recoveryDeleted(String[] personalQuestionIds);

    boolean deleteQuestionExpire(Date date);

    boolean removeByIds(Map<String, Object> params);

    List<PersonalQuestion> getPersonalQuestionHasDeleted(String personalQuestionStoreId);

    PersonalQuestion getPersonalQuestionById(String personalQuestionId);
}
